<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>fengche</title>
    <style>
        html{
            height: 100%;
            }
        body{
            height: 100%;
            margin: 0;
        }
        #bg{
            width: 100%;
            height: 100%;
            background: url(caodi.png);
            background-size: 100% 100%;
        }
        #f1{
            width: 30%;
            left:18.8%;
            top: 14%;
        }
        #f2{
            width: 20%;
            left: 41.2%;
            top: 51%;
        }
        #f3{
            width: 10%;
            left: 60.7%;
            top: 52.5%;
        }
        @keyframes spin{
            0%{
                transform: rotate(0);
            }
            100%{
                transform: rotate(360deg);
            }
        }
        .fc{
            position: absolute;
            animation-duration: 2s;
            animation-iteration-count: infinite;
            animation-name: spin;
            animation-timing-function: linear;
        }
        #f1:hover{
            animation-duration: 1s;
        }

        #f2:hover{
            /*动画状态：暂停*/
            animation-play-state: paused;
        }
        
        /*鼠标左键按下时的状态*/
        #f3:hover{
            /*动画方向*/
            animation-direction: reverse;
        }
    </style>
</head>
<body>
    <div id="bg">
        <img src="fengche.png" id="f1" class="fc">
        <img src="fengche.png" id="f2" class="fc">
        <img src="fengche.png" id="f3" class="fc">
    </div>
</body>
</html>